package com.cjw.pojo.dto.database;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class UserDTO extends BaseDTO implements Serializable {
    @ApiModelProperty("用户昵称")
    private String userName;

//    @ApiModelProperty("密码")
//    private String passWord;

    @ApiModelProperty("电话号码")
    private String phone;

//    @ApiModelProperty("盐值")
//    private String salt;

    @ApiModelProperty(value = "状态",notes = "0正常 1被封 2注销")
    private Integer state;

    @ApiModelProperty(value = "类型",notes = "0用户 1管理员")
    private Integer type;

    @ApiModelProperty("拥有的资源")
    private List<ResourceDTO> resourceDTOList;

    @ApiModelProperty("拥有的角色")
    private List<RoleDTO> roleDTOList;
}
